package com.fang;

import redis.clients.jedis.Jedis;

/**
 * @author 川川
 * @date 2021/9/25 17:09
 */
public class TestPing {
    public static void main(String[] args) {
        // 连接redis
        Jedis jedis = new Jedis("192.168.183.128", 6379);
        jedis.auth("123456");
        System.out.println(jedis.ping());
        // 关闭连接
        jedis.close();
    }
}
